package com.example.springbootdemo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 *@author xuwangqi
 *@date 2021/5/24 9:28
 **/
/**
    * 用户收货地址表
    */
@ApiModel(value="com-example-springbootdemo-entity-UserReceiveAddress")
@TableName(value = "user_receive_address")
public class UserReceiveAddress {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    @TableField(value = "user_id")
    @ApiModelProperty(value="")
    private Long userId;

    /**
     * 收货人名称
     */
    @TableField(value = "name")
    @ApiModelProperty(value="收货人名称")
    private String name;

    @TableField(value = "phone_number")
    @ApiModelProperty(value="")
    private String phoneNumber;

    /**
     * 是否为默认 0是非默认 1是默认
     */
    @TableField(value = "is_default")
    @ApiModelProperty(value="是否为默认 0是非默认 1是默认")
    private Integer isDefault;

    /**
     * 邮政编码
     */
    @TableField(value = "post_code")
    @ApiModelProperty(value="邮政编码")
    private String postCode;

    /**
     * 省份/直辖市
     */
    @TableField(value = "province")
    @ApiModelProperty(value="省份/直辖市")
    private String province;

    /**
     * 城市
     */
    @TableField(value = "city")
    @ApiModelProperty(value="城市")
    private String city;

    /**
     * 区
     */
    @TableField(value = "district")
    @ApiModelProperty(value="区")
    private String district;

    /**
     * 详细地址(街道)
     */
    @TableField(value = "street")
    @ApiModelProperty(value="详细地址(街道)")
    private String street;

    @TableField(value = "is_delete")
    @ApiModelProperty(value="")
    private Byte isDelete;

    @TableField(value = "gmt_create")
    @ApiModelProperty(value="")
    private Date gmtCreate;

    @TableField(value = "gmt_modified")
    @ApiModelProperty(value="")
    private Date gmtModified;

    public static final String COL_ID = "id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_NAME = "name";

    public static final String COL_PHONE_NUMBER = "phone_number";

    public static final String COL_IS_DEFAULT = "is_default";

    public static final String COL_POST_CODE = "post_code";

    public static final String COL_PROVINCE = "province";

    public static final String COL_CITY = "city";

    public static final String COL_DISTRICT = "district";

    public static final String COL_STREET = "street";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return user_id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 获取收货人名称
     *
     * @return name - 收货人名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置收货人名称
     *
     * @param name 收货人名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return phone_number
     */
    public String getPhoneNumber() {
        return phoneNumber;
    }

    /**
     * @param phoneNumber
     */
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    /**
     * 获取是否为默认 0是非默认 1是默认
     *
     * @return is_default - 是否为默认 0是非默认 1是默认
     */
    public Integer getIsDefault() {
        return isDefault;
    }

    /**
     * 设置是否为默认 0是非默认 1是默认
     *
     * @param isDefault 是否为默认 0是非默认 1是默认
     */
    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    /**
     * 获取邮政编码
     *
     * @return post_code - 邮政编码
     */
    public String getPostCode() {
        return postCode;
    }

    /**
     * 设置邮政编码
     *
     * @param postCode 邮政编码
     */
    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    /**
     * 获取省份/直辖市
     *
     * @return province - 省份/直辖市
     */
    public String getProvince() {
        return province;
    }

    /**
     * 设置省份/直辖市
     *
     * @param province 省份/直辖市
     */
    public void setProvince(String province) {
        this.province = province;
    }

    /**
     * 获取城市
     *
     * @return city - 城市
     */
    public String getCity() {
        return city;
    }

    /**
     * 设置城市
     *
     * @param city 城市
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 获取区
     *
     * @return district - 区
     */
    public String getDistrict() {
        return district;
    }

    /**
     * 设置区
     *
     * @param district 区
     */
    public void setDistrict(String district) {
        this.district = district;
    }

    /**
     * 获取详细地址(街道)
     *
     * @return street - 详细地址(街道)
     */
    public String getStreet() {
        return street;
    }

    /**
     * 设置详细地址(街道)
     *
     * @param street 详细地址(街道)
     */
    public void setStreet(String street) {
        this.street = street;
    }

    /**
     * @return is_delete
     */
    public Byte getIsDelete() {
        return isDelete;
    }

    /**
     * @param isDelete
     */
    public void setIsDelete(Byte isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * @return gmt_create
     */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * @param gmtCreate
     */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /**
     * @return gmt_modified
     */
    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * @param gmtModified
     */
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}